Auto merge of #4374 - behnam:new-init, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 8 Aug 2017 00:05:36 +0000 (00:05 +0000)
committerbors <bors@rust-lang.org>
Tue, 8 Aug 2017 00:05:36 +0000 (00:05 +0000)
commit287c0286c485111f1d036d6ce0912e038bb8bd3b
tree7a502149cad8a44b9a978a8420006a699215fafa
parent35bda5000dd7667e9612e7b3daca9313616b5873
parent484a33af8c0d6634cbe39fcd36362f50f95c01f3
Auto merge of #4374 - behnam:new-init, r=alexcrichton

[cargo_new] Hint to use `cargo init` on existing dir

The `new` command always expects a non-existing path. The `init` command
always expects an existing path. Therefore, it makes sense to hint to
use `init` if the pre-condition to `new` is not satisfied.

Fixes <#4366>